<?php

echo $this->Form->create('Transaction', array('class' => 'form-horizontal',
	'inputDefaults' => array(
		'class' => 'form-control',
		'div' => array('class' => 'form-group')
)));
echo $this->Form->input('date', array('class' => 'form-control', 'type' => 'text'));
echo $this->Form->input('name');
echo $this->Form->input('amount');
echo $this->Form->submit('Save' , array('class' => 'btn btn-primary'));
?>